﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MVCCentral.Framework.Mvc.Fyneworks
{
    /// <summary>
    /// The abstract class as the basis for the Forms classes.
    /// </summary>
    abstract class FormBuilder
    {
        protected Form form;

        public FormBuilder(string name)
        {
            this.form = new Form(name);
        }

        public Form Form
        {
            get { return form; }
        }

        public abstract void OpenDiv();             // Open any div or span before the form
        public abstract void OpenForm();            // Open the form element
        public abstract void GenerateInputs();      // Include all the form input elements
        public abstract void EndForm();             // Close the form
        public abstract void CloseDiv();            // Close the div or span
    }
}
